          <div class="sub_star">
             <h2>
                 <div class="com_tit"><?php echo $firstTitle."<span>".$secondTitle."</span>"; ?></div>
             </h2>
             <div class="sub_star_l">
<?php
              if($recordCount == 0)
                 echo "</div>";
              $i = 0;
              $isWriteFor4= false;
             foreach($newsArray as $row_array)
             {
                    $i = $i + 1;
                    $publishTime = "";
                    $image = $row_array["snapshot_big"];
                    if($image == null || $image == "")
                        $image = sfConfig::get("app_no_image");
                    
//                    if($row_array["currentHour"] < 24)
//                         $publishTime =  $row_array["currentHour"]."小时前发布";
//                    else
//                         $publishTime =  floor($row_array["currentHour"]/24)."天前发布";
                    //switch($i)
			        {
					    if($i== 1){
			                ?>
               <div class="star_top1"><?php echo link_to("<img src=\"".$image."\" class=\"top001\" >","news/detail?id=".$row_array["news_id"],array("target" => "_blank")) ?>
                   <h3><?php echo link_to($row_array["title"],"news/detail?id=".$row_array["news_id"],"target='_blank'"); ?></h3>
                 <div class="star_time">
                 <?php echo utility::DateDiff(date("Y-m-d H:i:s"),$row_array["publish_time"]);;?>
                 </div>
                 <div class="star_about"><?php echo  utility::getNoHtmlStr($row_array["brief"],0,32); ?></div>
               </div>

			   <?php
                            if($recordCount ==1)
                                echo "</div>";
                        }
			            if($i == 2 || $i ==3){
				?>
               <div class="star_top1">
                   <h3><?php echo link_to($row_array["title"],"news/detail?id=".$row_array["news_id"],"target='_blank'"); ?></h3>
                   <div class="star_time"><?php echo utility::DateDiff(date("Y-m-d H:i:s"),$row_array["publish_time"]);;?></div>
                   <div class="star_about"><?php echo  utility::getNoHtmlStr($row_array["brief"],0,32); ?></div>
               </div>
               <?php
                           if($recordCount >= 3)
                           {
                               if($i == 3)
                                   echo "</div>";
                           }
                           else
                               echo "</div>";
                        }
				         if($i > 3)    //$i == 4 || $i == 5
                         {
                            if($isWriteFor4 == false)
                                echo "<div class=\"sub_star_r\">";
			?>
               <div class="star_top1 star_top_r">
                 <div class="star_r_list">
                   <h3><?php echo link_to($row_array["title"],"news/detail?id=".$row_array["news_id"],"target='_blank'"); ?></h3>
                   <div class="star_text"><?php echo  utility::getNoHtmlStr($row_array["brief"],0,32); ?></div>
                   <div class="star_time"><?php echo utility::DateDiff(date("Y-m-d H:i:s"),$row_array["publish_time"]);;?></div>
                 </div>
                 <div class="star_r_img"><?php echo "<img src=\"".$image."\" >" ; ?></div>
               </div>

			   <?php
                            //if($isWriteFor4 == false)
                            if($i == $recordCount)
                            {
                                echo "</div>";
//                                if($recordCount == 5)
//                                {
//                                    if($i == 5)
//                                        echo "</div>";
//                                }
//                                else
//                                {
//                                    if($recordCount == 4)
//                                        echo "</div>";
//                                }
                            }
                            $isWriteFor4 = true;
                        }
			        }
                       //$i = $i + 1;
                  }
			   ?>
             <div class="latest_news_more" style="clear:both;"><?php echo link_to("MORE BREAKING NEWS","news/list?catalogId=".$catalogId."&subCatalogId=".$subCatalogId,"style=\"width:166px;display:".$moreLinkDisplay."\"") ?></div>
         </div>